package com.example.demo.domain;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import lombok.Data;

/**
 * 用户文章浏览es存储
 * Created by wengjunjie on 2018/3/29.
 */
@Document(indexName = "zeusmedia", type = "user_browse_v1", shards = 1, replicas = 0, refreshInterval = "-1")
@Data
public class EsUserBrowse {
    /**
     * user_id + article_id
     */
    @Id
    private String id;
    @Field
    private String user_id;
    @Field
    private String article_id;
    @Field
    private int view_count;
    @Field
    private Date create_time;
    @Field
    private Date last_update_time;

}
